function My_Code() {
	var buffer = new StringBuffer();
	buffer.append('<div class="title"><div class="back"></div><div class="name">我的</div><div class="tool"></div></div>');
	buffer.append('<div id="content" class="content" style="margin-top:45px; padding-top:15px; background-color:#f3f3f3;">');
	buffer.append('<ul class="my">');
	buffer.append('<li id="usercenter" style="height:80px;"><div class="quan border-top-bottom" style="height:80px;"><div class="icon" style="width:80px;height:80px;"><img class="headimg" src="'+User.HeadImg+'" style="width:60px; height:60px;"></div><div class="name" style="width:65%;"><label class="realname">'+User.RealName+'</label><font>（'+User.RoleName+'）</font><p><p style="height:20px; overflow:hidden;">'+User.DepartName+'</p></div><div class="arrow" style="margin-top: 30px;"><img src="img/arrow.png"/></div></div></li>');
	
	buffer.append('<li style="height:1px; margin-top:20px;"><div class="quan  border-bottom" style="width:100%; float:left; height:1px"></div></li>');
	buffer.append('<li id="question"><div class="quan border-bottom" style="width:96%;float:right"><div class="icon2"><img src="img/question.png"></div><div class="name">常见问题</div><div class="arrow"><img src="img/arrow.png"/></div></div></li>');
	buffer.append('<li id="suggest"><div class="quan border-bottom"><div class="icon"><img src="img/feedback.png"></div><div class="name">给我们建议</div><div class="arrow"><img src="img/arrow.png"/></div></div></li>');
	if(User.Power==4 || User.Power==5){
	buffer.append('<li id="agenter" style="margin-top:20px;"><div class="quan border-top-bottom"><div class="icon"><img src="img/proxy.png"></div><div class="name">代理商</div><div class="arrow"><img src="img/arrow.png"/></div></div></li>');
	}
	buffer.append('<li id="allset" style="margin-top:20px;"><div class="quan border-top-bottom"><div class="icon"><img src="img/gear6.png"></div><div class="name">设置</div><div class="arrow"><img src="img/arrow.png"/></div></div></li>');
	buffer.append('</ul>');
	buffer.append('</div>');
	return buffer.toString();
};

function Init_My()
{
	get("usercenter").addEventListener("tap",function(){
		OpenWindow(1,"我的资料","保存",function(){
			Update_User();
		});
		var data = {};
		data.act="One_User";
		data.id=User.ID;
		data.comid=comid;
		data.source=source;
		data.sign=GetSign(data.act);
		mui.getJSON(admin_domain, data, function(json) {
			$("#contentlist1").html(UserCenter_Code(json.data));
			$("#txt_sex").val(json.data.Sex);
			Init_UserCenter();
		});
	});
	get("question").addEventListener("tap",function(){
		myScroll1 = OpenScroll(1,"问题汇总","",function(pageindex){
										Receive_Question(pageindex);
								},function(){
									
								},Question_Code(),70);
								Receive_Question(1);
								get("find").addEventListener("tap",function(){
				      				$("#searchicon").hide();
	      							$("#searchicons").show();
	      							$("#keyword").attr("placeholder","关键字"); 
			    					if($("keyword").val()!="")
			    					{
			    						//WorkMate_Search();
			    					}
		});
	});
	get("suggest").addEventListener("tap",function(){
		OpenWindow(2,"意见反馈","提交",function(){
			Save_Suggest();
		});
		$("#contentlist2").html(Suggest_Code());
	});
	get("allset").addEventListener("tap",function(){
		OpenWindow2(2,"设置","",function(){
		});
		$("#contentlist2").html(Set_Code());
		Init_Set();
	});
	if(User.Power==4 || User.Power==5){
	get("agenter").addEventListener("tap",function(){
		OpenWindow2(2,"代理商","<img src='img/agencysearch.png' width='25' style='margin-top:11px;'/>",function(){
			OpenOAScreen(Agency_Search_Code(),function(){
				Init_Agency_Search();
			},function(){AgencyUser_Search(1)});
		});
		$("#contentlist2").html(Agency_Code());
		myScroll10=AtScroll(10,"weipanel10",function(pageindex){
			Receive_AgencyUser(pageindex);
		});
		Receive_AgencyUser(1);
		Init_Agency();
	});
	}
	   
};